<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/basproject/parameter/Bas_Parameter.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/basproject/barcode/Bas_Parameter.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name:'Bas_Parameter',
        setup() {
            const table = ref({
                key: "ParameterId",
                footer: "Foots",
                cnName: "参数配置",
                name: "parameter/Bas_Parameter",
                newTabEdit: false,
                url: "/Bas_Parameter/",
                sortName: "ParameterId"
            });
            const editFormFields = ref({"ParamModule":"","ParamName":"","ParamDesc":"","ParamPriority":"","ParamValue":"","ParamValueDesc":"","ParamInputType":"","Remarks":""});
            const editFormOptions = ref([[{"title":"参数所属模块","field":"ParamModule","type":"number"},
                               {"title":"参数名称","field":"ParamName"}],
                              [{"title":"参数说明","field":"ParamDesc"},
                               {"title":"优先级，越小优先","field":"ParamPriority","type":"number"}],
                              [{"title":"参数值","field":"ParamValue"},
                               {"title":"参数值描述","field":"ParamValueDesc"}],
                              [{"title":"参数输入类型","field":"ParamInputType"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"ParameterId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,align:"left"},
                       {field:"ParamModule",title:"参数所属模块",type:"int",width:110,align:"left"},
                       {field:"ParamName",title:"参数名称",type:"string",width:180,align:"left"},
                       {field:"ParamDesc",title:"参数说明",type:"string",width:150,align:"left"},
                       {field:"ParamPriority",title:"优先级，越小优先",type:"int",width:110,align:"left"},
                       {field:"ParamValue",title:"参数值",type:"string",width:180,align:"left"},
                       {field:"ParamValueDesc",title:"参数值描述",type:"string",width:150,align:"left"},
                       {field:"ParamInputType",title:"参数输入类型",type:"string",width:180,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
